import request from '@/utils/request'

export default {
  getData(searchObj) {
    return request({
      url: '/system/chart/list',
      method: 'get'
    })
  },
  getDataByCountry(searchObj) {
    return request({
      url: `/query/getByCountry/${searchObj.country}`,
      method: 'get'
    })
  },
  getDataByState(searchObj) {
    return request({
      url: `/query/getByState/${searchObj.state}`,
      method: 'get'
    })
  }
}
